package com.jjwxc.jwjskandriod.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import androidx.constraintlayout.widget.ConstraintLayout;

import com.jjwxc.jwjskandriod.R;
import com.jjwxc.jwjskandriod.config.BaseActivity;

public class PrivacyActivity extends BaseActivity implements View.OnClickListener {

    ConstraintLayout cl_daochu;
    ConstraintLayout cl_tuijian;
    TextView tv_one_quanxian;
    TextView tv_two_quanxian;

    @Override
    public int getContentViewId() {
        return R.layout.activity_privacy;
    }

    @Override
    public void findView() {
        setTitle("隐私设置");

        cl_daochu = findViewById(R.id.cl_daochu);
        cl_tuijian = findViewById(R.id.cl_tuijian);
        tv_one_quanxian = findViewById(R.id.tv_one_quanxian);
        tv_two_quanxian = findViewById(R.id.tv_two_quanxian);
    }

    @Override
    public void setListener() {
        cl_daochu.setOnClickListener(this);
        cl_tuijian.setOnClickListener(this);
        tv_two_quanxian.setOnClickListener(this);
        tv_one_quanxian.setOnClickListener(this);
    }

    @Override
    public void afterCreate() {

    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.cl_daochu) {
            Intent intent = new Intent(PrivacyActivity.this, InformationActivity.class);
            startActivity(intent);
        } else if (v.getId() == R.id.cl_tuijian) {
            Intent intent = new Intent(PrivacyActivity.this, ManagePushActivity.class);
            startActivity(intent);
        } else if (v.getId() == R.id.tv_one_quanxian) {
            showToast("权限已开启");
        }else if (v.getId() == R.id.tv_two_quanxian) {
            showToast("权限已开启");
        }

    }
}
